<div class="formPanel">
    <fieldset>
        <legend>Tìm kiếm</legend>
        <form id="search_form_ability" action="<?php echo base_url(); ?>admin_combo/ability/searchdata" method="post">
            <label>Nhà cung cấp: </label>
            <select id='slProvider' name='slProvider'>
                <option value="0">--None--</option>
                <?php
                    if(isset($info_provider))
                        callProvider($info_provider);
                ?>
            </select><br />
            <label>Tên sản phẩm:</label>
            <input type="text" id="txtTitle" name="txtTitle" size="30" value="" /><br />
            <label>Đơn giá từ:</label>
            <input type="text" id="txtFrom" name="txtFrom" size="30" value="" /><br />
            <label>Đơn giá đến:</label>
            <input type="text" id="txtTo" name="txtTo" size="30" value="" /><br />
            <input type="submit" class="button" id="btnSearchAbility" name="btnSearchAbility" value="Tìm Kiếm" />
        </form>
    </fieldset>
</div>
<div align="center">
    <div id="recorddata">
        <table>
            <tr>
                <td class="title">Stt</td>
                <td class="title">Nhà Cung Cấp</td>
                <td class="title">Sản phẩm</td>
                <td class="title">Hình SP</td>
                <td class="title">Đơn giá</td>
                <td class="title">Ghi Chú</td>
                <td class="title">Edit</td>
                <td class="title">Del</td>
            </tr>
            <?php
                if($info != "empty") {
                    $stt=0;
                    foreach($info as $item) {
                        $stt++;
                        echo "<tr>";
                        echo    "<td>$stt</td>";
                        echo    "<td>$item[prov_name]</td>";
                        echo    "<td>$item[pro_title]</td>";
                        echo    "<td><img width='50' height='50' src='".base_url()."uploads/product_main/".$item["pro_img"]."' /></td>";
                        echo    "<td>$item[ability_unit_price]</td>";
                        echo    "<td>$item[ability_note]</td>";
                        echo    "<td class='action edit'><a href='".base_url()."admin_combo/ability/edit/$item[ability_id]' id='edit_$item[ability_id]'><strong>Edit</strong></a></td>";
                        echo    "<td class='action del'><a href='".base_url()."admin_combo/ability/del/$item[ability_id]' id='del_$item[ability_id]' 
                                    onclick='return confirm_delete(\"Bạn có chắc chắn muốn xóa?\");'><strong>Del</strong></a></td>";
                        echo "</tr>";
                    }
                }else
                    echo "<tr><td colspan='8'><font style='color: #99CC00; font-weight: bold;'>$info</font></td></tr>"
            ?>
        </table>
    </div>
<?php
    echo $this->pagination->create_links();
?>
</div>